﻿using System;
using System.Text;

namespace SKBKontur.Serialization.Helpers
{
    public static class DateTimeExtensions
    {
        public static byte[] ToByteArray(this DateTime dt)
        {
            return Encoding.UTF8.GetBytes(String.Format("{0:yyyyMMddHHmmssfff}", dt));
        }
    }
}